package com.tools.genxsd.util;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author: zhoubin
 * @date: 2022/11/10
 */
public class SeqUtil {

    private static final AtomicInteger atoSeq = new AtomicInteger();

    public static String genAtoName(String name) {

        return name + atoSeq.getAndIncrement();
    }

    public static void clear() {
        atoSeq.set(0);
    }
}
